home *** CD-ROM | disk | FTP | other *** search
Wrap
function renderVideoDataArray(nodes_array, depth_array) { var _loc1_ = 0; while(_loc1_ < nodes_array.length) { depth_array[depth_array.length - 1] += 1; var _loc5_ = depth_array.join(".") + "."; nodes_array[_loc1_].attributes.index = _loc5_; if(nodes_array[_loc1_].attributes.type == "movie") { var _loc3_ = new Object(); _loc3_.chapter_id = _loc5_; _loc3_.movie_name = nodes_array[_loc1_].attributes.name; _loc3_.movie = nodes_array[_loc1_].attributes.movie; if(nodes_array[_loc1_].attributes.movie2 != undefined && nodes_array[_loc1_].attributes.movie2 != "") { _loc3_.movie2 = nodes_array[_loc1_].attributes.movie2; } video_array.push(_loc3_); } if(nodes_array[_loc1_].hasChildNodes()) { renderVideoDataArray(nodes_array[_loc1_].childNodes,depth_array.concat([0])); } _loc1_ = _loc1_ + 1; } if(depth_array.length == 1) { notifyDebugger("After RenderVideoDataArray"); openApplication(); } } function renderSettings() { if(client_os == "Windows") { mdm.Forms.SplashForm.callFunction("output","Rendering settings..",""); } var _loc2_ = settings.firstChild.childNodes[0]; while(_loc2_ != null) { if(_loc2_.firstChild.nodeType == 1) { _root[_loc2_.nodeName] = _loc2_.childNodes; } else { _root[_loc2_.nodeName] = _loc2_.firstChild.nodeValue; } _loc2_ = _loc2_.nextSibling; } _loc2_ = styles.firstChild.childNodes[0]; while(_loc2_ != null) { _root[_loc2_.nodeName] = _loc2_.firstChild.nodeValue; _loc2_ = _loc2_.nextSibling; } if(default_stage_width > client_res_x) { default_stage_width = client_res_x; } if(default_stage_height > client_res_y) { default_stage_height = client_res_y; } if(allow_bookmarks != "true") { tab_bookmarks = undefined; } tab_arr.push([tab_home,"home_mc",false]); tab_arr.push([tab_dvd_content,"dvd_content_mc",false,undefined]); tab_arr.push([tab_bookmarks,"bookmarks_mc",false,undefined]); tab_arr.push([tab_online,"online_mc",false,undefined]); tab_arr.push([tab_help,"help_mc",false,undefined]); tab_arr.push([tab_setup,"setup_mc",false,undefined]); i = 0; while(i < additional_tabs.length) { tab_arr.push([additional_tabs[i].firstChild.nodeValue,"template_mc" + i,false,additional_tabs[i].attributes.xml_file]); i++; } i = 0; while(i < tab_arr.length) { if(!(tab_arr[i][0] == "" or tab_arr[i][0] == null or tab_arr[i][0] == undefined)) { used_tab_arr.push(tab_arr[i]); } i++; } if(moviefolder_1280 == "" or moviefolder_1280 == null or moviefolder_1280 == undefined or moviefolder_1280 == "null" or moviefolder_1280 == "undefined") { moviefolder_1280 = moviefolder_1024; } if(moviefolder_1024 == "" or moviefolder_1024 == null or moviefolder_1024 == undefined or moviefolder_1024 == "null" or moviefolder_1024 == "undefined") { moviefolder_1024 = moviefolder_1280; } if(max_video_res == 1280) { moviefolder = moviefolder_1280; } else if(max_video_res == 1024) { moviefolder = moviefolder_1024; } moviepath_info = folder + moviefolder; if(wfiles_folder == undefined) { wfiles_folder = ""; } if(client_res_y <= 768) { full_video_mode_display = "true"; } if(minimum_stage_height < 500) { minimum_stage_height = 500; } if(videojump_ondrag_allowed == "true") { videojump_ondrag_allowed = true; } else { videojump_ondrag_allowed = false; } apptitle = vendor_name + " - " + app_name; application_title_op.autoSize = true; application_title_op.text = apptitle; mdm.Application.title = apptitle; so_name = "v2b" + unique_app_code; v2b_so = SharedObject.getLocal(so_name,"/"); if(v2b_so.data.last_seen_movie) { last_seen_movie_xml_node = new XML(v2b_so.data.last_seen_movie[0]); } tmp_header_info = header_start_info; if(debug == "true") { renderDebugger(); } loadContent(); } function renderDebugger() { test_op._y = 200; _root.attachMovie("debug_mc","debug_mc_attached",5500); if(debugger_open) { debug_mc_attached._x = 3; } else { debug_mc_attached._x = -200; } if(_root.useFSP_path == "true") { debug_mc_attached._y = 43; } else { debug_mc_attached._y = 3; } debug_mc_attached.open_debug_btn_mc.btn_rollover_mc._visible = false; debug_mc_attached.open_debug_btn_mc.onRollOver = function() { this.btn_rollover_mc._visible = true; }; debug_mc_attached.open_debug_btn_mc.onRollOut = function() { this.btn_rollover_mc._visible = false; }; debug_mc_attached.open_debug_btn_mc.onRelease = function() { this.btn_rollover_mc._visible = false; if(debugger_open) { _root.debug_mc_attached._x = -200; debugger_open = false; } else { _root.debug_mc_attached._x = 3; debugger_open = true; } }; debug_mc_attached.save_bookmarks_btn_mc.btn_rollover_mc._visible = false; debug_mc_attached.save_bookmarks_btn_mc.onRollOver = function() { this.btn_rollover_mc._visible = true; }; debug_mc_attached.save_bookmarks_btn_mc.onRollOut = function() { this.btn_rollover_mc._visible = false; }; debug_mc_attached.save_bookmarks_btn_mc.onRelease = function() { this.btn_rollover_mc._visible = false; content_pos_mc.video_mc.savePdBookmarks(); }; notifyDebugger(master_version); notifyDebugger(os_info); notifyDebugger(os_string[0]); notifyDebugger(fsp_path); } function renderMain() { loadClip(fsp_path + folder + bg_image,bg_mc,null,null,"fullfixed",true,undefined,false,true); content_pos_mc._visible = false; content_pos_mc._x = 0; content_pos_mc._y = 0; content_pos_mc.attachMovie("content_bg_mc","content_bg_mc",content_pos_mc.getNextHighestDepth()); content_pos_mc.content_bg_mc._y = 25; content_pos_mc.attachMovie("bottom_mc","bottom_mc",content_pos_mc.getNextHighestDepth()); content_pos_mc.bottom_mc._x = 2; content_pos_mc.bottom_mc._y = 2; content_pos_mc.bottom_mc.app_header_text_mc.text_op.autoSize = true; content_pos_mc.bottom_mc.app_header_text_mc.text_op.text = app_name; content_pos_mc.bottom_mc.app_header_reflex_mc.text_op.autoSize = true; content_pos_mc.bottom_mc.app_header_reflex_mc.text_op.text = app_name; content_pos_mc.bottom_mc.header_reflexion_mc._width = Math.round(content_pos_mc.bottom_mc.app_header_reflex_mc.text_op._width + 10); content_pos_mc.bottom_mc.createEmptyMovieClip("logo_bottom_holder_mc",1); loadClip(fsp_path + folder + logo_bottom,content_pos_mc.bottom_mc.logo_bottom_holder_mc,null,null,null,false,setPos,false,true); content_pos_mc.attachMovie("tab_navigation_mc","tab_navigation_mc",content_pos_mc.getNextHighestDepth()); content_pos_mc.tab_navigation_mc._y = 0; content_pos_mc.tab_navigation_mc.attachMovie("tab_navigation_bg_mc","tab_navigation_bg_mc",content_pos_mc.tab_navigation_mc.getNextHighestDepth()); content_pos_mc.tab_navigation_mc.tab_navigation_bg_mc._height = 25; i = 0; while(i < used_tab_arr.length) { content_pos_mc.tab_navigation_mc.attachMovie("tab_navigation_item_mc","tab_item_mc" + i,content_pos_mc.tab_navigation_mc.getNextHighestDepth()); content_pos_mc.tab_navigation_mc["tab_item_mc" + i].item_id = i; content_pos_mc.tab_navigation_mc["tab_item_mc" + i].tab_navigation_item_rollover_mc._visible = false; content_pos_mc.tab_navigation_mc["tab_item_mc" + i].text_op._x = 20; content_pos_mc.tab_navigation_mc["tab_item_mc" + i].text_op.autoSize = true; content_pos_mc.tab_navigation_mc["tab_item_mc" + i].text_op.textColor = parseColor(tabnavigator_text_color); content_pos_mc.tab_navigation_mc["tab_item_mc" + i].text_op.text = used_tab_arr[i][0].toUpperCase(); content_pos_mc.tab_navigation_mc["tab_item_mc" + i].tab_navigation_item_bg_mc._width = Math.round(content_pos_mc.tab_navigation_mc["tab_item_mc" + i].text_op.textWidth + 47); if(i == 0) { content_pos_mc.tab_navigation_mc["tab_item_mc" + i]._x = 2; } else { content_pos_mc.tab_navigation_mc["tab_item_mc" + i]._x = Math.round(content_pos_mc.tab_navigation_mc["tab_item_mc" + (i - 1)]._x + content_pos_mc.tab_navigation_mc["tab_item_mc" + (i - 1)]._width + 2); } content_pos_mc.tab_navigation_mc["tab_item_mc" + i]._y = 2; drawBox(content_pos_mc.tab_navigation_mc["tab_item_mc" + i].tab_navigation_item_rollover_mc,content_pos_mc.tab_navigation_mc["tab_item_mc" + i].tab_navigation_item_bg_mc._width,23,parseColor(tabnavigator_rollover_color),parseColor(tabnavigator_rollover_color),100,100,"linear"); drawBox(content_pos_mc.tab_navigation_mc["tab_item_mc" + i].tab_navigation_item_active_mc,content_pos_mc.tab_navigation_mc["tab_item_mc" + i].tab_navigation_item_bg_mc._width,25,parseColor(tabnavigator_pressed_color),parseColor(tabnavigator_pressed_color),100,100,"linear"); content_pos_mc.tab_navigation_mc["tab_item_mc" + i].onRollOver = function() { this.tab_navigation_item_rollover_mc._visible = true; }; content_pos_mc.tab_navigation_mc["tab_item_mc" + i].onRollOut = content_pos_mc.tab_navigation_mc["tab_item_mc" + i].onReleaseOutside = function() { this.tab_navigation_item_rollover_mc._visible = false; }; content_pos_mc.tab_navigation_mc["tab_item_mc" + i].onRelease = function() { renderContent(this.item_id); }; i++; } content_pos_mc.tab_navigation_mc.tab_navigation_bg_mc._width = Math.round(content_pos_mc.tab_navigation_mc._width + 2); content_pos_mc.attachMovie("content_panel_mc","content_panel_mc",content_pos_mc.getNextHighestDepth()); notifyDebugger("Before ASB Init"); AsBroadcaster.initialize(content_pos_mc.content_panel_mc); notifyDebugger("After ASB Init"); content_pos_mc.content_panel_mc._x = 2; content_pos_mc.content_panel_mc._y = 27; content_pos_mc.createEmptyMovieClip("content_mc",content_pos_mc.getNextHighestDepth()); content_pos_mc.content_mc._x = 2; content_pos_mc.content_mc._y = 27; content_pos_mc.attachMovie("video_mc","video_mc",content_pos_mc.getNextHighestDepth()); content_pos_mc.video_mc._x = 2; content_pos_mc.video_mc._y = 52; content_pos_mc.attachMovie("mct_mc","mct_mc",content_pos_mc.getNextHighestDepth()); content_pos_mc.mct_mc._x = 0; if(full_video_mode_display == "true") { content_pos_mc.mct_mc._y = 27; } else { content_pos_mc.mct_mc._y = 52; } setPos(); loadClip(fsp_path + folder + "vcore.swf",content_pos_mc.video_mc,null,null,null,false,false,false,false,true,initializeStage); } function initializeStage() { rendercontent_delay = setTimeout(renderContent,250,0); } function renderContent(arg) { if(content_pos_mc._visible == false) { content_pos_mc._visible = true; } if(video_mode) { if(mct_mode) { killMCT(); } else if(content_pos_mc.video_mc.flv_player_state == "stopped") { killMovie(); } else { pauseMovie(); } } i = 0; while(i < used_tab_arr.length) { content_pos_mc.tab_navigation_mc["tab_item_mc" + i].tab_navigation_item_active_mc._visible = false; content_pos_mc.tab_navigation_mc["tab_item_mc" + arg].text_op.textColor = parseColor(tabnavigator_text_color); content_pos_mc.tab_navigation_mc["tab_item_mc" + i].enabled = true; if(used_tab_arr[i][2]) { content_pos_mc.content_mc[used_tab_arr[i][1]].setVisibility(false); } i++; } content_pos_mc.tab_navigation_mc["tab_item_mc" + arg].tab_navigation_item_rollover_mc._visible = false; content_pos_mc.tab_navigation_mc["tab_item_mc" + arg].tab_navigation_item_active_mc._visible = true; content_pos_mc.tab_navigation_mc["tab_item_mc" + arg].text_op.textColor = parseColor(tabnavigator_text_pressed_color); content_pos_mc.tab_navigation_mc["tab_item_mc" + arg].enabled = false; if(used_tab_arr[arg][2]) { content_pos_mc.content_mc[used_tab_arr[arg][1]].setVisibility(true); } else if(used_tab_arr[arg][3]) { content_pos_mc.content_mc.attachMovie("template_mc",used_tab_arr[arg][1],arg); content_pos_mc.content_mc[used_tab_arr[arg][1]].xml_file = used_tab_arr[arg][3]; used_tab_arr[arg][2] = true; } else { content_pos_mc.content_mc.attachMovie(used_tab_arr[arg][1],used_tab_arr[arg][1],arg); used_tab_arr[arg][2] = true; } last_visible_content = arg; }